package com.sy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sy.PageVO;
import com.sy.dto.UsersPageDTO;
import com.sy.pojo.Users;
import com.sy.vo.UsersPageVO;
import org.springframework.stereotype.Service;

/**
 * @className: UsersService
 * @author: Mr.Liu
 * @date: 2025/10/29 13:55
 * @Version: 1.0
 * @description:用户业务接口
 */

public interface UsersService extends IService<Users> {
    /*
     * @Author Mr.Liu
     * @Description //TODO 分页查询
     * @Date 13:48 2025/10/30
     * @Param 
     * @return 
     **/
    
    PageVO<UsersPageVO> queryPage(UsersPageDTO usersPageDTO);
    /*
     * @Author Mr.Liu
     * @Description //TODO 修改用户状态
     * @Date 13:50 2025/10/30
     * @Param [id, status]
     * @return boolean
     **/
    boolean updateStatus(Integer id,Integer status);
    /*
     * @Author Mr.Liu
     * @Description //TODO 用户的登录认证
     * @Date 16:01 2025/11/10
     * @Param [phone, code]
     * @return boolean
     **/
    String userLogin(String phone,String code);
    /*
     * @Author Mr.Liu
     * @Description //TODO 通过手机号查询用户信息
     * @Date 10:20 2025/11/11
     * @Param [phone]
     * @return com.sy.pojo.Users
     **/
    Users queryUsersByPhone(String phone);
}
